package org.csu.ismartguard.service.impl;

import org.csu.ismartguard.dao.WarningDao;
import org.csu.ismartguard.domain.Warning;
import org.csu.ismartguard.service.WarningService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WarningServiceImpl implements WarningService {
    @Autowired
    private WarningDao warningDao;
    @Override
    public boolean add(Warning warning) {
        return warningDao.insert(warning) > 0;
    }
}
